const Token = require('./token')
module.exports = {
  getUserInfo(req) {
    const token = req.get('authorization')?.replace('Bearer ', '')
    return Token.verify(token)
  }
}
